package org.example.fronted.service;

import org.apache.ibatis.annotations.Param;
import org.example.entity.Address;
import org.example.entity.Data;

import java.util.List;

public interface AddressService2 {

    Address queryById(Integer uid);

    Data changeTakeDeliveryAddress(Integer uId, Integer aId);

    int defaultAddress(Integer uId, Integer aId);

    Address selectTDAddressByUid(Integer uId);

    int insertAddress(Address address, @Param("uId") Integer uId);

    List<Address> getAddressByUserId(Integer userId);
}
